<?php
$this->setLayout('template'.DS.'default.phtml');
$this->startBlock('scriptBlocks');
?>
<script language="javascript" type="text/javascript">
    $(function(){
        $('#parent_id').change(function(){
            Kdf.Ajax.loadJson({
                url:'<?php echo $this->getUrl(NULL, 'change-parent') ?>/parent/' + $(this).val(),
                success:function(data){
                    var list = data.menus;
                    var html = '<option value="-1"><?php echo $this->__('article.label.last_position') ?></option>';
                         
                    $('#sorting').html(html);
                }
            });
        });
    });
</script>
<?php


$this->endBlock();
$this->startBlock('topbar');
echo $this->navigation->toHtml();
$this->endBlock();

$this->startBlock();
echo $this->toolbar->toHtml();
echo $this->form->toHtml();
$this->endBlock();
